package com.xiu.travel.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;

/**
 * @author 2023
 */

@AllArgsConstructor
public enum ConfirmStatusEnum implements IEnum
{
    /**
     * 未收货
     */
    UNCONFIRMED(0,"未收货"),
    /**
     * 已收货
     */
    CONFIRMED(1,"已收货");
    @EnumValue
    private final Integer code;
    @JsonValue
    private final String status;

    public String getStatus()
    {
        return status;
    }

    @Override
    public Integer getValue()
    {
        return code;
    }
}
